<!-- 1903010328 查询通行证 -->
<?php
include "../../inc/log/adsession.php";
include "../../inc/data/connAdmin.php"
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台首页</title>
	<link rel="stylesheet" type="text/css" href="/28/inc/CSS/admin">
	<link rel="stylesheet" type="text/css" href="/28/inc/CSS/reset.css">
<!--1903010328 统计信息 -->

</head>
<body>
	<div id="tScoreln">
		<!--顶部-->
			<div id="top">
			<img src="/28/inc/pic/00.png">
			<!--导航栏区域和下拉列表-->
			<div id="top-rig">
			<ul>
			    <li><a href="">首页</a></li>
			    <li id="ddown"><a href="" id="dropbtn">学校概况</a>
				    <div id="ddown-content">
				    <a href="">学校简介</a>
				    <a href="">历任教师</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">国际合作</a>
				    <div id="ddown-content">
				    <a href="">交流概况</a>
				    <a href="">国际学生</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">院系部门</a>
				    <div id="ddown-content">
				    <a href="">党群机构</a>
				    <a href="">管理与服务机构</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">科学研究</a>
				    <div id="ddown-content">
				    <a href="">科研概况</a>
				    <a href="">重点学科</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">教师队伍</a>
				    <div id="ddown-content">
				    <a href="">总体介绍</a>
				    <a href="">杰出人才</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">人才培养</a>
				    <div id="ddown-content">
				    <a href="">继续教育</a>
				    <a href="">奖贷学金</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">人才招聘</a>
				    <div id="ddown-content">
				    <a href="">优秀博士后</a>
				    <a href="">应聘方式</a>
				    </div>
				</li>
                <li id="ddown"><a href="" id="dropbtn">招生就业</a>
				    <div id="ddown-content">
				    <a href="">本科生招生</a>
				    <a href="">就业服务</a>
				    </div>
				</li>
				<img src="/28/inc/pic/find1.png">
		    </ul>
			</div>
			</div>
	    <!--顶部结束-->
	    <!---->
	    	<div id="main">
	        	<img src="/28/inc/pic/position.png">
	    		当前位置: 后台首页-二级学院管理--修改课程
	    <!--结束-->
	    <div id="yh">
	    <img src="/28/inc/pic/user.png" style="width:25px;height:25px;margin:3px 10px;">
		<!-- 1903010328 动态信息 -->
		<h4 style="margin:8px 10px;font-size:20px;color:#1D50A2">您好！
		<?=$_SESSION["uName"]?>
		</h4>
	    </div>
		<!--结束-->
		<!-- 查询课程 -->
		<?php
		$taskId=$_GET["taskid"];
		$sql="select cocode,coname,cograde,majorname,taskterm,mamx_teacher.teid,tasktime,taskid
			 from mamx_course,mamx_task,mamx_teacher
			 where mamx_task.coid=mamx_course.coid
			 and mamx_task.teid=mamx_teacher.teid
			 and taskid=?";
	 	$stmt=$conn->prepare($sql);
	 	$stmt->bind_param("i",$taskId);
	 	$stmt->execute();
	 	$stmt->bind_result($cCode,$cName,$cGrade,$majorName,$taskTerm,$teId,$taskTime,$taskId);
	 	$stmt->store_result();
	?>
	    <!--表格区域-->
	 	<form id="" method="post" name="" action="taskModiDeal.php?taskid=<?=$taskId?>" style="" >
	 	<?php
			if ($stmt->fetch()) {
		?>
  			<table  style="margin: 10px auto; text-align:center;border:4px solid #1D50A2;color:#b3572e" width="900px">
  				<tr>
  					<td colspan="4"><h3>修改教学任务信息</h3></td>
  				</tr>
  				<tr>
				  	<td style="font-size:20px;font-weight:bold"> 课程编码</td>
				    <td><input type="text" name="cocode"  value="<?=$cCode?>" style="width:100px;font-size:20px;text-align:center;color:#288f6c"></td>
				    <td style="font-size:20px;font-weight:bold">课程名称</td>
				    <td> <input type="text" name="coname" value="<?=$cName?>" style="width:150px;font-size:17px;text-align:center;color:#288f6c"></td>
  				</tr>
  				<tr>
   					<td style="font-size:20px;font-weight:bold">适用年级</td>
				    <td><input type="text" name="cograde" value="<?=$cGrade?>" style="width:100px;font-size:20px;text-align:center;color:#288f6c" ></td>
				    <td style="font-size:20px;font-weight:bold">适用专业</td>
				    <td><input type="text" name="majorname" value="<?=$majorName?>" style="width:150px;font-size:20px;text-align:center;color:#288f6c"></td>
				</tr>		
    			<tr>
				    <td style="font-size:20px;font-weight:bold" colspan="2">学期</td>
				    <td colspan="2"> <input type="text" name="term" value="<?=$taskTerm?>" style="width:100px;font-size:20px;text-align:center;color:#288f6c"></td>
				</tr>
				<tr>
				  	<td style="font-size:20px;font-weight:bold" colspan="2">授课教师</td>
				    <td colspan="2"><input type="text" name="teid" value="<?=$teId?>" style="width:120px;font-size:20px;text-align:center;color:#288f6c"></td>
  				</tr>
  				<tr>
				    <td colspan="4" style="font-size:20px;font-weight:bold">授课时间
				    <input type="text" name="tasktime" value="<?=$taskTime?>" style="width:100px;font-size:20px;text-align:center;color:#288f6c"></td>
  				</tr>
  				<tr><td colspan="4"><input type="submit" value="确定"  style="width:100px;height:30px;background-color:#1da252;font-size:20px;text-align:center;color:white"></td></tr>
  			</table>
    <?php
    }
    ?>
</form>
	</div>
</body>
</html>